<template>
  <div id="box">
    <!-- <div>后台管理——默认页</div>
    <router-view></router-view> -->
    <el-container class="el-box">
      <!-- 侧边栏 -->
      <v-nav />
      <el-container>
        <el-header>
          <!-- 头部 -->
          <v-heads />
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import VNav from "@/components/VNav.vue";
import VHeads from "@/components/VHeads.vue";
export default {
  name: "",
  data() {
    return {};
  },
  created() {},
  mounted() {},
  components: {
    VNav,
    VHeads,
  },

  methods: {
    // handleOpen(key, keyPath) {
    //   console.log(key, keyPath);
    // },
    // handleClose(key, keyPath) {
    //   console.log(key, keyPath);
    // },
  },
};
</script>

<style  scoped>
.headed {
  /* float: right; */
  display: flex;
  justify-content: space-between;
}
/* #box {
  width: 100vw;
  height: 100vh;
} */
/* el-menu-item-group {
  background-color: #d3dce6;
} */

.el-box {
  width: 100vw;
  height: 100vh;
}
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #20222a;
  color: #fff;
  text-align: center;
  line-height: 60px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  /* text-align: center; */
  /* line-height: 160px; */
}

body > .el-container {
  margin-bottom: 40px;
}
/* .el-submenu :hover .el-submenu__title {
  background-color: "red";
  color: #333;
} */
/* .el-submenu__title:hover {
  background-color: #333;
} */
.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
.el-menu-vertical-demo {
  background-color: #20222a;
}
</style>
